package com.yh.dao.impl;

import com.yh.dao.SelectDao;
import com.yh.dao.common.HibernateUtil;
import com.yh.model.TownModel;

import java.util.List;

public class Townimpl implements SelectDao<TownModel> {
    @Override
    public List<TownModel> all() {
        List<TownModel> list = HibernateUtil.currentSession().createCriteria(TownModel.class).list();
        return list;
    }

}
